package com.netease.financial.base.splash;

import android.text.TextUtils;

/**
 * Created by hzwuyufeng on 2/14/16.
 */
public class SplashViewModel {

    private int duration;

    private String launchPageImageUrl;

    private String agreementUrl;

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public void setLaunchPageImageUrl(String launchPageImageUrl) {
        this.launchPageImageUrl = launchPageImageUrl;
    }

    public int getDuration() {
        return duration;
    }

    public String getLaunchPageImageUrl() {
        return launchPageImageUrl;
    }

    public String getAgreementUrl() {
        return agreementUrl;
    }

    public void setAgreementUrl(String agreementUrl) {
        this.agreementUrl = agreementUrl;
    }

    public boolean isViewAgreementEnabled() {
        return !TextUtils.isEmpty(agreementUrl);
    }

}
